package edu.ynu.se.xiecheng.achitectureclass.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

/**
 * 土壤数据DTO
 * 用于传输土壤传感器采集的数据
 */
@Data
@ApiModel(description = "土壤数据信息")
public class SoilDataDTO {

    @ApiModelProperty(value = "数据ID")
    private Long id;

    @ApiModelProperty(value = "设备ID")
    private Long deviceId;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "数据名称", example = "土壤湿度")
    private String name;

    @ApiModelProperty(value = "测量值")
    private Double value;

    @ApiModelProperty(value = "测量单位", example = "%")
    private String unit;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}